package com.xyoto.community.service;

import com.xyoto.community.dto.DeleteProverbDTO;
import com.xyoto.community.dto.ProverbDTO;
import com.xyoto.community.utils.Result;

/**
 * 金句服务类
 */
public interface ProverbService {

    /**
     * 获取一条每日金句
     * @author 廖振辉
     * @return {@link Result}
     */
    Result getOne();

    /**
     * 新增每日金句
     * @author 廖振辉
     * @param proverbDTO
     * @return {@link Result}
     */
    Result addOne(ProverbDTO proverbDTO);

    /**
     * 根据金句id删除金句
     * @author 廖振辉
     * @param deleteProverbDTO
     * @return {@link Result}
     */
    Result deleteById(DeleteProverbDTO deleteProverbDTO);
}
